using System.Collections.Generic;
using UnityEngine;

public class butPlayOfflineMode : ActivatableButton
{
	[SerializeField]
	private MapDistrict district;

	private void OnClick()
	{
		if (Load.LoadBool(settings.KeyActionAfterTutor))
		{
			Dictionary<string, string> dictionary = new Dictionary<string, string>();
			dictionary.Add("Action after tutor", "Adventure");
			FlurryWrapper.LogEvent(FlurryWrapper.EV_TUTORIAL_CLOSE, dictionary);
			Save.SaveBool(settings.KeyActionAfterTutor, false);
		}
		settings.SetAreaNameForRespawn(district.levelscene);
		district.LoadPVECity();
		FlurryWrapper.LogEvent(FlurryWrapper.EV_LAUNCH_FREEPLAY);
	}

	private void Awake()
	{
		district = GetComponentInParent<MapDistrict>();
	}
}
